package com.kingyun.gpsinspection.purificationservice.facade.service.iam.scyx;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.scyx.DeviceFault;

/**
 * Created by yangsy on 2016/12/7.
 */
public interface DeviceFaultService {
    int deleteByPrimaryKey(String deviceFaultId);

    DeviceFault selectByPrimaryKey(String deviceFaultId);

    int updateByPrimaryKeySelective(DeviceFault record);

    JSONObject list(DeviceFault deviceFault);

    /**
     * 新增设备故障操作
     * @param record 设备故障业务数据
     * @param uploadFiles 需要更新的附件信息
     * @param deletedFiles 删除的附件信息，新增时候，删除附件信息为空
     * @return
     */
    int insertSelective(DeviceFault record, String uploadFiles, String deletedFiles);


    /***
     * 修改设备故障信息操作
     * @param record 设备故障业务数据
     * @param uploadFiles 需要更新的附件信息
     * @param deletedFiles 删除的附件信息
     * @return
     */
    int updateByPrimaryKeySelective(DeviceFault record, String uploadFiles, String deletedFiles);
}
